package com.app.model;

import com.app.vo.EnterpriseVo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_intermediary")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class IntermediaryModel {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;//名称

    private String logo;
    private String address;//地址

    private double longitude;//经度

    private double latitude;//纬度

    private Integer scale;//规模id

    private String introduce;//介绍

    private String businessLicenseUrl;//营业执照
    private String permitUrl;//经营许可证
    private String laborDispatchUrl;//劳务派遣证件
    private String annualInspectionReportUrl;//年检报告

    private String otherUrl;//其他证件

    private String mobile;//联系电话
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp crtTime;
    @TableField(exist = false)
    private String scaleText;
    @TableField(exist = false)
    private Integer page;
    @TableField(exist = false)
    private Integer limit;
    @TableField(exist = false)
    private EnterpriseVo enterpriseVo;
    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private String DesensitizationMobile;


}
